<%--
  Created by IntelliJ IDEA.
  User: Sssller
  Date: 2021/1/21
  Time: 21:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>无标题文档</title>
</head>

<body>
<form action="" method="post">
    <table width="100%" border="1">
        <tr>
            <td colspan="2" align="center"><pre>TbPanel</pre></td>
        </tr>
        <tr>
            <td width="22%">板块名称</td>
            <td width="78%"><label for="name"></label>
                <input type="text" name="name" id="name" value="${id.name}"></td>
            <input type="hidden" name="hiddenField" id="hiddenField" value="${id.id}"></td>
        </tr>
        <tr>
            <td>类型</td>

            <td><label for="type"></label>
                        <input type="radio" name="type" id="type" value="0" <c:if test="${id.type==0}">checked</c:if>>
                <label for="type"></label>
                轮播图
                <input type="radio" name="type" id="type2" value="1" <c:if test="${id.type==1}">checked</c:if>>
                <label for="type2"></label>
                板块种类1
                <input type="radio" name="type" id="type3" value="2" <c:if test="${id.type==2}">checked</c:if>>
                <label for="type3"></label>
                板块种类2
                <input type="radio" name="type" id="type4" value="3" <c:if test="${id.type==3}">checked</c:if>>
                <label for="type4"></label>
                板块种类3</td>
        </tr>
        <tr>
            <td>排列序号</td>
            <td><label for="sortOrder"></label>
                <input type="text" name="sortOrder" id="sortOrder" value="${id.sortOrder}"></td>
        </tr>
        <tr>
            <td>所属位置</td>
            <td><input type="radio" name="position" id="position" value="0" <c:if test="${id.position==0}">checked</c:if>>
                <label for="position"></label>
                首页
                <input type="radio" name="position" id="position2" value="1" <c:if test="${id.position==1}">checked</c:if>>
                <label for="position2"></label>
                商品推荐
                <input type="radio" name="position" id="position3" value="2" <c:if test="${id.position==2}">checked</c:if>>
                <label for="position3"></label>
                我要捐赠</td>
        </tr>
        <tr>
            <td>板块限制商品数量</td>
            <td><label for="limitNum"></label>
                <input type="text" name="limitNum" id="limitNum" value="${id.limitNum}"></td>
        </tr>
        <tr>
            <td>状态</td>
            <td><label for="status"></label>
                <input type="text" name="status" id="status" value="${id.status}"></td>
        </tr>
        <tr>
            <td>备注</td>
            <td><label for="remark"></label>
                <input type="text" name="remark" id="remark" value="${id.remark}"></td>
        </tr>
        <tr>
            <td>创建时间</td>
            <fmt:formatDate value="${id.created}" pattern="YYYY-MM-DD" var="c"></fmt:formatDate>
            <td><label for="created"></label>
                <input type="text" name="created" id="created" value="${c}"></td>
        </tr>
        <tr>
            <td>更新时间</td>
            <fmt:formatDate value="${id.updated}" pattern="YYYY-MM-DD" var="c"></fmt:formatDate>
            <td><label for="updated"></label>
                <input type="text" name="updated" id="updated" value="${c}"></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" name="button" id="button" value="插入提交">
                <input type="reset" name="button2" id="button2" value="重置"></td>
        </tr>
    </table>
</form>
</body>
</html>

